package com.spring.sunflower;


import com.blankj.utilcode.util.SPUtils;
import com.spring.sunflower.base.BaseApplication;
import com.spring.sunflower.constant.Constant;
import com.spring.sunflower.util.ChannelInfoUtils;
import com.tencent.smtt.export.external.TbsCoreSettings;
import com.tencent.smtt.sdk.QbSdk;
import com.umeng.analytics.MobclickAgent;
import com.umeng.commonsdk.UMConfigure;

import java.util.HashMap;

/**
 * create by fanlc
 * on 1/7/21
 * description
 */
public class App extends BaseApplication {
    private final static String UMENG_ID = "6247a8006adb343c47edc347";

    @Override
    public void onCreate() {
        super.onCreate();
    }
    public void initSDK(){
        String channel = ChannelInfoUtils.getChannel(this);

        HashMap map = new HashMap();
        map.put(TbsCoreSettings.TBS_SETTINGS_USE_SPEEDY_CLASSLOADER, true);
        map.put(TbsCoreSettings.TBS_SETTINGS_USE_DEXLOADER_SERVICE, true);
        QbSdk.initTbsSettings(map);

        UMConfigure.init(this,UMENG_ID,channel, UMConfigure.DEVICE_TYPE_PHONE, null);
        MobclickAgent.setPageCollectionMode(MobclickAgent.PageMode.AUTO);
    }
}